package com.crp.unitalinforbaseplat.app.sys.dao;

import com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity.PageBean;
import com.crp.unitalinforbaseplat.app.sys.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List< Role> list(PageBean<Role> rolePageBean);

    Role selectByName(String name);
}